package com.ruoyi.printer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.printer.domain.PrinterParams;
import com.ruoyi.printer.mapper.PrinterParamsMapper;
import com.ruoyi.printer.service.IPrinterParamsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 打印参数Service业务层处理
 * 
 * @author yanyi
 * @date 2023-07-14
 */
@Service
public class PrinterParamsServiceImpl extends ServiceImpl<PrinterParamsMapper,PrinterParams> implements IPrinterParamsService
{
    /**
     * 查询打印参数
     * 
     * @param paramsId 打印参数主键
     * @return 打印参数
     */
    @Override
    public PrinterParams selectPrinterParamsByParamsId(String paramsId)
    {
        return baseMapper.selectPrinterParamsByParamsId(paramsId);
    }

    /**
     * 查询打印参数列表
     * 
     * @param printerParams 打印参数
     * @return 打印参数
     */
    @Override
    public List<PrinterParams> selectPrinterParamsList(PrinterParams printerParams)
    {
        return baseMapper.selectPrinterParamsList(printerParams);
    }

    /**
     * 新增打印参数
     * 
     * @param printerParams 打印参数
     * @return 结果
     */
    @Override
    public int insertPrinterParams(PrinterParams printerParams)
    {
        return baseMapper.insert(printerParams);
    }

    /**
     * 修改打印参数
     * 
     * @param printerParams 打印参数
     * @return 结果
     */
    @Override
    public int updatePrinterParams(PrinterParams printerParams)
    {
        return baseMapper.updatePrinterParams(printerParams);
    }

    /**
     * 批量删除打印参数
     * 
     * @param paramsIds 需要删除的打印参数主键
     * @return 结果
     */
    @Override
    public int deletePrinterParamsByParamsIds(String[] paramsIds)
    {
        return baseMapper.deletePrinterParamsByParamsIds(paramsIds);
    }

    /**
     * 删除打印参数信息
     * 
     * @param paramsId 打印参数主键
     * @return 结果
     */
    @Override
    public int deletePrinterParamsByParamsId(String paramsId)
    {
        return baseMapper.deletePrinterParamsByParamsId(paramsId);
    }
}
